#ifndef _NE_MODEL_FILE_FORMAT_H_
#define _NE_MODEL_FILE_FORMAT_H_

#include <neinit.h>

namespace ne
{
    const uint32_t MODEL_FILE_MAGIC_NUMBER = 0x1222;
    const uint32_t MODEL_FILE_VERSION = 1;
    const uint32_t MAX_STRING_LENGTH_IN_MODEL_FILE = 0x80;

    struct ModelHeader
    {
        uint32_t mMagicNum;
        uint32_t mVersion;
        char mName[MAX_STRING_LENGTH_IN_MODEL_FILE];
        char mSkeletonName[MAX_STRING_LENGTH_IN_MODEL_FILE];
        char mAnimationGroupName[MAX_STRING_LENGTH_IN_MODEL_FILE];
        uint32_t mSkinCount;
        uint32_t mSkinOffset;
    };

    struct SkinHeader
    {
        char mName[MAX_STRING_LENGTH_IN_MODEL_FILE];
        char mMeshName[MAX_STRING_LENGTH_IN_MODEL_FILE];
    };
}

#endif
